<template>
	<view class="myapply">
		<view class="applyList" v-for="(item,index) in applyList" :key="item.teacherCheckId">
			<uni-group mode="card" title="我的申请">
				<apply-item :apply="item" :nickname="member.nickname"></apply-item>
			</uni-group>
		</view>
	</view>
</template>

<script setup>
	const applyList = ref([])
	import {getApply} from '../../apis/teacher.js'
	let member = uni.getStorageSync("member")
	const getApplyList = async (phone) => {
		const res = await getApply(phone)
		applyList.value = res.data.data
		console.log(applyList.value)
		console.log(res)
	}
	getApplyList(member.mobile)
</script>

<style lang="scss" scoped>
.myapply{
	margin-top: -20rpx;
	background:
	linear-gradient(to bottom,transparent,#fff 1300rpx ),
	linear-gradient(to right,#beecd8,#F4E2D8);
	min-height: 80vh;
	.applyList{
		padding-top: 50rpx;
	}
}
</style>
